home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / systems / mac / euro-oztex / EOT2.1#3.sea.bin / TeX-inputs / CFG / hyphen.cfg < prev    next >
Text File  |  1995-01-04  |  8KB  |  215 lines

  1. %% 
  2. %% This is file `lthyphen.cfg', generated 
  3. %% on <1994/10/6> with the docstrip utility (2.2h).
  4. %% 
  5. %% The original source files were:
  6. %% 
  7. %% babel.dtx  (with options: `kernel,patterns')
  8. %% 
  9. %% Copyright (C) 1989-1994 by Johannes Braams 
  10. %% All rights reserved. 
  11. %% For additional copyright information see further down in this file. 
  12. %% 
  13. %% This file is part of the Babel system, release 3.4 patchlevel 2. 
  14. %% ---------------------------------------------------------------- 
  15. %% 
  16. %% This file is distributed in the hope that it will be useful, 
  17. %% but WITHOUT ANY WARRANTY; without even the implied warranty of 
  18. %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
  19. %% 
  20. %% 
  21. %% IMPORTANT NOTICE: 
  22. %% 
  23. %% For error reports in case of UNCHANGED versions see readme file. 
  24. %% 
  25. %% Please do not request updates from me directly. Distribution is 
  26. %% done through Mail-Servers and TeX organizations. 
  27. %% 
  28. %% You are not allowed to change this file. 
  29. %% 
  30. %% You are allowed to distribute this file under the condition that 
  31. %% it is distributed together with all files mentioned in manifest.txt. 
  32. %% 
  33. %% If you receive only some of these files from someone, complain! 
  34. %% 
  35. %% You are NOT ALLOWED to distribute this file alone. You are NOT 
  36. %% ALLOWED to take money for the distribution or use of either this 
  37. %% file or a changed version, except for a nominal charge for copying 
  38. %% etc. 
  39. %%%\iffalse
  40. %%%  @LaTeX-file{
  41. %%%     author          = "Johannes L. Braams",
  42. %%%     version         = "3.4f",
  43. %%%     date            = "03 July 1994",
  44. %%%     time            = "23:33:58 MET",
  45. %%%     filename        = "babel.dtx",
  46. %%%     address         = "PTT Research
  47. %%%                        St. Paulusstraat 4
  48. %%%                        2264 XZ Leidschendam
  49. %%%                        The Netherlands",
  50. %%%     telephone       = "(70) 3325051",
  51. %%%     FAX             = "(70) 3326477",
  52. %%%     checksum        = "60652 2080 9803 80663",
  53. %%%     email           = "J.L.Braams@research.ptt.nl (Internet)",
  54. %%%     codetable       = "ISO/ASCII",
  55. %%%     keywords        = "babel",
  56. %%%     supported       = "yes",
  57. %%%     docstring       = "This file, babel.dtx contains the core of
  58. %%%                        the babel system as it was described in
  59. %%%                        TuGboat Volume 12 no 2 and Volume 14 no 1.
  60. %%%
  61. %%%                        The checksum field above contains a CRC-16
  62. %%%                        checksum as the first value, followed by the
  63. %%%                        equivalent of the standard UNIX wc (word
  64. %%%                        count) utility output of lines, words, and
  65. %%%                        characters.  This is produced by Robert
  66. %%%                        Solovay's checksum utility.",
  67. %%%      }
  68. %%% \fi
  69. %%
  70. %% Copyright (C) 1989-1994 by Johannes Braams,
  71. %%                            PTT Research Neher Laboratories
  72. %%                            all rights reserved.
  73. %% Please report errors to: J.L. Braams
  74. %%                          J.L.Braams@research.ptt.nl
  75. \ifx\ProvidesFile\undefined
  76.   \def\ProvidesFile#1[#2 #3 #4]{\wlog{#4 #3 <#2>}}\fi
  77. \ProvidesFile{lthyphen.cfg}
  78.                 [1994/07/03 v3.4f
  79.       Babel language switching mechanism]
  80. \ifx\language\undefined
  81.   \csname newcount\endcsname\language
  82. \fi
  83. \ifx\newlanguage\undefined
  84.   \csname newcount\endcsname\last@language
  85. \else
  86.   \countdef\last@language=19
  87. \fi
  88. \ifx\newlanguage\undefined
  89.   \def\addlanguage#1{%
  90.     \global\advance\last@language \@ne
  91.     \ifnum\last@language<\@cclvi
  92.     \else
  93.         \errmessage{No room for a new \string\language!}%
  94.     \fi
  95.     \global\chardef#1\last@language
  96.     \wlog{\string#1 = \string\language\the\last@language}}
  97. \else
  98.   \def\addlanguage{\alloc@9\language\chardef\@cclvi}
  99. \fi
  100. \def\adddialect#1#2{%
  101.     \global\chardef#1#2\relax
  102.     \wlog{\string#1 = a dialect from \string\language#2}}
  103. \def\iflanguage#1#2#3{%
  104.   \expandafter\ifx\csname l@#1\endcsname\relax
  105.     \@nolanerr{#1}%
  106.   \else
  107.     \ifnum\csname l@#1\endcsname=\language #2%
  108.     \else#3\fi
  109.   \fi}
  110. \def\selectlanguage#1{\protect\p@selectlanguage{%
  111.   \ifnum\escapechar=\expandafter`\string#1\empty
  112.      \else \string#1\empty\fi}}
  113. \ifx\undefined\protect\let\protect\relax\fi
  114. \def\p@selectlanguage#1{\relax
  115.   \expandafter\ifx\csname l@#1\endcsname\relax
  116.     \@nolanerr{#1}%
  117.   \else
  118.     \language=\csname l@#1\endcsname\relax
  119.     \originalTeX
  120.     \edef\languagename{#1}%
  121.     \expandafter\def\expandafter\originalTeX
  122.         \expandafter{\csname noextras#1\endcsname
  123.                      \let\originalTeX\empty}%
  124.     \babel@beginsave
  125.     \csname captions#1\endcsname
  126.     \csname date#1\endcsname
  127.     \csname extras#1\endcsname\relax
  128.   \fi}%
  129. \ifx\undefined\originalTeX\let\originalTeX\empty\fi
  130. \ifx\undefined\babel@beginsave\let\babel@beginsave\relax\fi
  131. \ifx\PackageError\undefined
  132.   \def\@nolanerr#1{%
  133.     \errhelp{Your command will be ignored, type <return> to proceed}%
  134.     \errmessage{You haven't defined the language #1\space yet}}
  135.   \def\@nopatterns#1{%
  136.     \message{No hyphenation patterns were loaded for}
  137.     \message{the language `#1'}
  138.     \message{I will use the patterns loaded for \string\language=0
  139.           instead}}
  140. \else
  141.   \def\@nolanerr#1{%
  142.     \PackageError{babel}%
  143.                  {You haven't defined the language #1\space yet}%
  144.         {Your command will be ignored, type <return> to proceed}}
  145.   \def\@nopatterns#1{%
  146.     \PackageWarningNoLine{babel}%
  147.         {No hyphenation patterns were loaded for\MessageBreak
  148.           the language `#1'\MessageBreak
  149.           I will use the patterns loaded for \string\language=0
  150.           instead}}
  151. \fi
  152. \newtoks\patterns@loaded \global\patterns@loaded={}
  153. \def\process@language#1 #2 {%
  154.     \expandafter\addlanguage\csname l@#1\endcsname
  155.     \expandafter\language\csname l@#1\endcsname
  156.     \global\patterns@loaded\expandafter{\the\patterns@loaded#1, }%
  157.     \lefthyphenmin\m@ne
  158.     \input #2\relax
  159.     \ifnum\lefthyphenmin=\m@ne
  160.       \lefthyphenmin\tw@
  161.       \righthyphenmin\thr@@
  162.     \fi
  163.     \expandafter\edef\csname extras#1\endcsname{%
  164.       \lefthyphenmin\the\lefthyphenmin\relax
  165.       \righthyphenmin\the\righthyphenmin\relax}}
  166. \openin1 = language.dat
  167. \ifeof1
  168.     \message{I couldn't find the file language.dat,\space
  169.              I will try the file hyphen.tex}
  170.     \input hyphen.tex\relax
  171. \else
  172. \last@language=-1
  173. \loop
  174.   \endlinechar=-1
  175.   \read1 to \@line
  176.   \endlinechar`\^^M
  177.   \ifx\@line\empty
  178.   \else
  179.     \expandafter\expandafter\expandafter
  180.     \process@language\expandafter\@line\space
  181.   \fi
  182.     \iftrue \csname fi\endcsname
  183.     \csname if\ifeof1 false\else true\fi\endcsname
  184.   \repeat
  185.   \language=0
  186. \fi
  187. \closein1
  188. \let\process@language=\undefined
  189. \let\orig@dump=\dump
  190. \def\dump{%
  191.   \everyjob\expandafter{\the\everyjob%
  192.     \immediate\write16{Hyphenation patterns for \the\patterns@loaded
  193.       loaded.}}%
  194.   \let\dump\orig@dump\let\orig@dump\undefined\dump}
  195. %%\languagespecific{russian.dtx}
  196. %%
  197. %% \CharacterTable
  198. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  199. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  200. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  201. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  202. %%   Dollar        \$     Percent       \%     Ampersand     \&
  203. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  204. %%   Asterisk      \*     Plus          \+     Comma         \,
  205. %%   Minus         \-     Point         \.     Solidus       \/
  206. %%   Colon         \:     Semicolon     \;     Less than     \<
  207. %%   Equals        \=     Greater than  \>     Question mark \?
  208. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  209. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  210. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  211. %%   Right brace   \}     Tilde         \~}
  212. \endinput
  213. %% 
  214. %% End of file `lthyphen.cfg'.
  215.